import request from '@/utils/request'

//获取所有数据库表名
export function getTableData() {
  return request({
    url: `form/project/getTableName`,
    method: 'get',
  })
}
// 获取表中所有数据
export function getTableAllData(id) {
  return request({
    url: `form/project/getAllListData?tableName=${id}`,
    method: 'get',
  })
}
// 获取表中所有字段
export function getTableFields(name) {
  return request({
    url: `form/project/getColumn?tableName=${name}`,
    method: 'get',
  })
}

// 获取表中所有字段
export function getFieldColumn(name) {
  return request({
    url: `form/project/getFieldColumn?tableName=${name}`,
    method: 'get',
  })
}


